/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * TabelasInternalFrame.java
 *
 * Created on 27/07/2011, 11:12:12
 */

package savet.gui;

import javax.swing.JPanel;
import org.openswing.swing.mdi.client.InternalFrame;

/**
 *
 * @author Adisson
 */
public class TabelasInternalFrame extends InternalFrame {

    /** Creates new form TabelasInternalFrame */
    public TabelasInternalFrame() {
        initComponents();
    }

    public void adicionarPainel(String titulo, JPanel painel) {
        tabbedPane.add(titulo, painel);
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        tabbedPane = new javax.swing.JTabbedPane();

        getContentPane().add(tabbedPane, java.awt.BorderLayout.CENTER);

        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
        setBounds((screenSize.width-807)/2, (screenSize.height-339)/2, 807, 339);
    }// </editor-fold>//GEN-END:initComponents


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JTabbedPane tabbedPane;
    // End of variables declaration//GEN-END:variables

}
